From 6d837e3f3f70d8574bb5c498fdf292b28383b426 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 May 2003 02:14:49 +0000 Subject: [PATCH] Don't call mkshort twice for ANYNAME. Fix for Rick. --- csv_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/csv_util.c b/csv_util.c index f9ef04814..a89bcfe37 100644 --- a/csv_util.c +++ b/csv_util.c @@ -639,10 +639,7 @@ xcsv_waypt_pr(const waypoint *wpt) anyname = xstrdup(""); if ((anyname) && (global_opts.synthesize_shortnames)) { - char *oldname = anyname; - anyname = mkshort(xcsv_file.mkshort_handle, - wpt->notes ? wpt->notes : wpt->description); - xfree(oldname); + anyname = xstrdup(shortname); } sprintf(buff, fmp->printfc, anyname); -- 2.30.2